package edu.ufl.cise.sanitas.types.comm;

import edu.ufl.cise.sanitas.types.data.Condition;
import edu.ufl.cise.sanitas.types.data.Newsfeed;
import edu.ufl.cise.sanitas.types.data.User;

public class SigninResponse extends Response {

	private Condition[] conditionList;
	private User user;
	
	public SigninResponse(Condition[] conditionList, User user) {
		super(Types.SIGN_IN, Status.SUCCESS, null);
		this.conditionList = conditionList;
		this.user = user;
	}
	
	public SigninResponse(Status status, String errmsg) {
		super(Types.SIGN_IN, status, errmsg);
		this.conditionList = null;
		this.user = null;
	}

	public Condition[] getConditionList() {
		return conditionList;
	}

	public User getUser() {
		return user;
	}

}
